Skip to content

feat: add CLI command to set accounts prefilling server url and user#1667

Merged
ShGKme merged 2 commits intomainfrom
feat/predefine-account-cli
Feb 20, 2026
Merged

feat: add CLI command to set accounts prefilling server url and user#1667
ShGKme merged 2 commits intomainfrom
feat/predefine-account-cli

Conversation

@ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Feb 19, 2026

☑️ Resolves

CLI commands

Run a command in the app and quit without launching the entire app.

config

Set application configuration.

Option Description
--accounts=[user@]server Comma-separated list of prefilled accounts

Examples:

./Nextcloud\ Talk config --accounts=cloud.company.tld
./Nextcloud\ Talk config --accounts='Name Surname@cloud.company.tld'
./Nextcloud\ Talk config --accounts=name@email.tld@company.tld/nextcloud

@ShGKme ShGKme added this to the 🪴 Next Release milestone Feb 19, 2026
@ShGKme ShGKme self-assigned this Feb 19, 2026
@ShGKme ShGKme added the enhancement New feature or request label Feb 19, 2026
@ShGKme ShGKme force-pushed the feat/predefine-account-cli branch from 7c12165 to b768652 Compare February 19, 2026 21:15
Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nitpick, otherwise fine

console.error(`Invalid server: ${server}`)
app.exit(1)
}
if (user && (!/^[a-zA-Z0-9 _.@\-']{1,64}$/.test(user) || user !== user.trim())) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: does it cover all Nextcloud/LDAP/SSO/SAML cases? I remember some issues or report with the latter

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't check everything, so it is even a bit wider than actual requirements. A minimal check to have allowed characters and trim.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The most common unexpected issue - spaces are allowed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good enough for now, we can fix it later if someone had an issue

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme ShGKme force-pushed the feat/predefine-account-cli branch from 1364321 to cc0894f Compare February 20, 2026 09:42
@ShGKme ShGKme enabled auto-merge February 20, 2026 09:43
@ShGKme ShGKme merged commit d80c79c into main Feb 20, 2026
11 checks passed
@ShGKme ShGKme deleted the feat/predefine-account-cli branch February 20, 2026 09:44
@ShGKme ShGKme mentioned this pull request Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add MSI / command line option to preconfigure Nextcloud server URL for Talk Desktop Prefill Nextcloud Userdata at first start

3 participants